package com.real.fact.web.product.view;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.Errors;

import com.globant.katari.core.spring.controller.SimpleFormCommandController;
import com.real.fact.web.product.application.SaveProductCommand;

/**
 *
 * @since Jul 3, 2011
 */
public abstract class EditProductController extends SimpleFormCommandController {


  @SuppressWarnings("rawtypes")
  @Override
  protected Map referenceData(HttpServletRequest request, Object command,
      Errors errors) throws Exception {
    SaveProductCommand saveCommand = (SaveProductCommand) command;
    saveCommand.init();
    return super.referenceData(request, command, errors);
  }
  
}
